/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfcapi.entity;

import com.easy.common.utils.excel.annotation.ExcelField;
import com.easy.core.persistence.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 	活动报名审核记录Entity
 * @author waylen chi
 * @version 2018-01-11
 */
public class ApiActivityAudit extends BaseEntity<ApiActivityAudit> {
	
	private static final long serialVersionUID = 1L;
	private String id;		// UUID
	private Integer auditId;		// 活动审核ID自增
	private Integer enrollId;		// 报名活动ID
	private Integer storeId;		// 厂家ID【冗余】
	private Integer activityId;		// 活动id【冗余】
	private Integer auditType;		// 默认0，0-形式审核，1-缴费，-1-退费
	private String auditContent;		// 审核内容【包括缴费】
	private Date auditTime;		// 审核时间
	private Integer auditPsn;		// 审核人
	
	public ApiActivityAudit() {
		super();
	}

	public ApiActivityAudit(String id){
		this.id = id;
	}

	@NotNull(message="活动审核ID自增不能为空")
	@ExcelField(title="活动审核ID自增", align=2, sort=0)
	public Integer getAuditId() {
		return auditId;
	}

	public void setAuditId(Integer auditId) {
		this.auditId = auditId;
	}
	
	@NotNull(message="报名活动ID不能为空")
	@ExcelField(title="报名活动ID", align=2, sort=1)
	public Integer getEnrollId() {
		return enrollId;
	}

	public void setEnrollId(Integer enrollId) {
		this.enrollId = enrollId;
	}
	
	@ExcelField(title="厂家ID【冗余】", align=2, sort=2)
	public Integer getStoreId() {
		return storeId;
	}

	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}
	
	@ExcelField(title="活动id【冗余】", align=2, sort=3)
	public Integer getActivityId() {
		return activityId;
	}

	public void setActivityId(Integer activityId) {
		this.activityId = activityId;
	}
	
	@NotNull(message="默认0，0-形式审核，1-缴费，-1-退费不能为空")
	@ExcelField(title="默认0，0-形式审核，1-缴费，-1-退费", align=2, sort=4)
	public Integer getAuditType() {
		return auditType;
	}

	public void setAuditType(Integer auditType) {
		this.auditType = auditType;
	}
	
	@ExcelField(title="审核内容【包括缴费】", align=2, sort=5)
	public String getAuditContent() {
		return auditContent;
	}

	public void setAuditContent(String auditContent) {
		this.auditContent = auditContent;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="审核时间不能为空")
	@ExcelField(title="审核时间", align=2, sort=6)
	public Date getAuditTime() {
		return auditTime;
	}

	public void setAuditTime(Date auditTime) {
		this.auditTime = auditTime;
	}
	
	@NotNull(message="审核人不能为空")
	@ExcelField(title="审核人", align=2, sort=7)
	public Integer getAuditPsn() {
		return auditPsn;
	}

	public void setAuditPsn(Integer auditPsn) {
		this.auditPsn = auditPsn;
	}

}